package com.example.machine.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2024-02-19
 * Time: 10:31
 */
@Data
public class PageRequest {
    //当前页码
    //给出默认值
    private Integer currentPage = 1;
    //每页显示的条数
    //给出默认值
    private Integer pageSize = 4;

    public Integer getOffset() {
        return (currentPage-1) * pageSize;
    }
}
